<%@ page  contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/jsp/common/head.jsp"%>

<div class="content">
    <div class="container-fluid">
        <nav class="pull-left">
            <strong>你现在所在的位置是:</strong>&nbsp;&nbsp;&nbsp; <span>供应商管理页面 >> 供应商修改页面</span><br> <br>
        </nav>
    </div>
    <div class="container-fluid">
        <div class="row">
            <div>
                <div class="card">
                    <div class="header">
                        <h4 class="title">
                            修改供应商信息 <small> Edit Supplier Information</small>
                        </h4>
                    </div>
                    <div class="content">
                        <form id="providerForm" name="providerForm" method="post"
                              action="${pageContext.request.contextPath}/sys/provider/modifysave.html">
                            <input type="hidden" name="id" value="${provider.id}"/>

                            <div class="row">
                                <div class="col-md-4">
                                    <div class="form-group">
                                        <label for="proName">供应商名称 <small> Supplier Name</small> </label>
                                        <input type="text" class="form-control border-input" name="proName"
                                               id="proName" value="${provider.proName}">
                                        <font color="red"></font>
                                    </div>
                                </div>
                                <div class="col-md-5">
                                    <div class="form-group">
                                        <label for="proCode">供应商编码 <small> Supplier Code</small> </label>
                                        <%--注意id--%>
                                        <input type="text" class="form-control border-input" id="proCode"
                                               value="${provider.proCode}"><%--取消只读--%>
                                    </div>
                                </div>
                                <div class="col-md-3">
                                    <div class="form-group">
                                        <label for="proContact">联系人 <small> Contact</small> </label>
                                        <input type="text" class="form-control border-input" name="proContact"
                                               id="proContact" value="${provider.proContact}">
                                        <font color="red"></font>
                                    </div>
                                </div>
                            </div>

                            <div class="row">
                                <div class="col-md-6">
                                    <div class="form-group">
                                        <label for="proPhone">联系电话 <small> Phone Number</small> </label>
                                        <input type="text" class="form-control border-input" name="proPhone"
                                               id="proPhone" value="${provider.proPhone}">
                                        <font color="red"></font>
                                    </div>
                                </div>
                                <div class="col-md-6">
                                    <div class="form-group">
                                        <label for="proAddress">地址 <small> Address</small> </label>
                                        <input type="text" class="form-control border-input" name="proAddress"
                                               id="proAddress" value="${provider.proAddress}">
                                        <font color="red"></font>
                                    </div>
                                </div>
                            </div>

                            <div class="row">
                                <div class="col-md-12">
                                    <div class="form-group">
                                        <label for="proDesc">供应商描述 <small> Description</small> </label>
                                        <textarea rows="5" class="form-control border-input" name="proDesc"
                                                  id="proDesc">${provider.proDesc}</textarea>
                                        <font color="red"></font>
                                    </div>
                                </div>
                            </div>

                            <div class="text-center">
                                <input type="button" name="save" id="save" value="修改供应商"
                                       class="btn btn-info btn-fill btn-wd" />
                                <input type="button" id="back" name="back" value="返回"
                                       class="btn btn-success btn-fill btn-wd" onclick="window.history.back();" />
                            </div>
                            <div class="clearfix"></div>
                        </form>
                    </div>
                </div>
            </div>

        </div>
    </div>
</div>

<%@ include file="/WEB-INF/jsp/common/foot.jsp"%>
<script type="text/javascript">
    $(".sidebar-wrapper .nav li:eq(4)").addClass("active");
</script>
<%--乱码，换个浏览器--%>
<script type="text/javascript" src="${pageContext.request.contextPath}/statics/js/providermodify.js"></script>
